Conditions | 1 |
Total Lines | 12 |
Code Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | import { NodeSelection } from '../../components/types'; |
||
4 | |||
5 | export function createTooltip(svgContainer: NodeSelection<SVGGElement>) { |
||
6 | const tooltipElement = svgContainer |
||
7 | .append('g') |
||
8 | .attr('id', 'tooltip') |
||
9 | .style('opacity', 0); |
||
10 | tooltipElement |
||
11 | .append('rect') |
||
12 | .attr('fill', ElementColors.BUTTON) |
||
13 | .attr('rx', 5) |
||
14 | .attr('ry', 5); |
||
15 | tooltipElement.append('text').attr('fill', TextColors.HIGHLIGHTED); |
||
16 | } |
||
25 |